//
//  UILabel+extension.swift
//  Weibo(Swift)
//
//  Created by 阳 on 16/7/10.
//  Copyright © 2016年 阳. All rights reserved.
//

import UIKit

extension UILabel
{
    convenience init(text : String,
        textColor : UIColor = UIColor.darkGrayColor(),
        numberOfLine : Int = 0,
        fontSize : CGFloat = 13 ,
        textAlignment : NSTextAlignment = NSTextAlignment.Left
        )
    {
        self.init()
        self.text = text
        self.textColor = textColor
        self.font = UIFont.systemFontOfSize(fontSize)
        self.numberOfLines = numberOfLine
        self.textAlignment = textAlignment
    }
}
